﻿using DBVisitor.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DBVisitor.DBConditions
{
    public class EqualConditionElement : IConditionElement
    {
        public Value Value { get; protected set; }
        public EqualConditionElement(Value value)
        {
            Value = value;
        }
        public virtual string SerializeToText()
        {
            return $"{Value.Column.Name}={Value.Serialize()}";
        }
    }
}
